home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 5
/
CD-ROM Today - The Disc (Issue 5)(November 1994).ISO
/
mac
/
DHA demo
/
Don Norman Folder
/
The Library
/
The Library.rsrc
/
CSTR_12147_FillThemCSTR
< prev
next >
Wrap
Text File
|
1994-09-21
|
2KB
|
66 lines
global namelist,idlist,tct,books,TDi,PgCt,chapters,chapterstart,xxxStackPath
global LgST,ratio,thetext,Bname,gLR,gSR,gLPS,gSPS,gSLTable,gLSTable
global gLookInBookFolder, gResourceFolderName, gResourcePaths,gAnnotationChars,gCurLang,gNBSN
put GetStackPath() into xxxStackPath
doCSTR "FillgHCLangCSTR"
set the language to "English"
put getStr("CurrentLanguage") into gCurLang
if gCurLang = "" then put 1 into gCurLang
put getstr("supportedlanguages") into suplangs
put getstr("installedlanguages") into inslangs
if line gCurLang of inslangs = ""
then
answer "This book was published in"&&line gCurLang of suplangs&", which is not supported by this version of ╘The Library╒."
put 1 into gCurLang
end if
if gNBSN="" then put "The Notebook" into gNBSN
get ssn()
if it ¡ "The Library" and it ¡ gNBSN and (get1Str("VoyagerBook")¡"" and get1str("TextToolKit")="") then
put getStackPath() into p
put it&&tStr("LibMsg",7) into t
put char 1 to 31 of t into t
CreateFolder p,t
end if
put getStr("AnnotationSymbolList") into gAnnotationChars
if gAnnotationChars = "" then put "*+î⌐ºÑá╢─╫α" into gAnnotationChars
get get1Str("ResourceLocations")
put line 1 of it into gLookInBookFolder
put line 2 of it into gResourceFolderName
doCSTR "FillgResourcePathsCSTR"
if not RB() then
cbusy
put the short id of this cd into wf
get get1Str("printSizes") --this string is in each book
if it ¡ "" then
put line 1 of it into gSPS
put line 2 of it into gLPS
else
put "12,17" into gSPS
put "18,20" into gLPS
end if
put get1Str("TypeSizeTableLS") into gLSTable --this string is in each book
put get1Str("TypeSizeTableSL") into gSLTable --this string is in each book
get getstr("stylRects")
put line 1 of it into gSR
put line 2 of it into gLR
put ssn() into BName
put 30015 into TDi
LM true
LS
if there is a bg "details" then put the number of cds in bg "details" into PgCt
else put 0 into PgCt
put PgCt/340 into Ratio
cbusy
if ((tStr("LibMsg",46) is not in BName) and (gNBSN is not in BName)) then
go cd 1 of bg "title page"
put fld "chapter starts" into chapterstart
put fld "chapter names" into chapters
end if
if there is a bg "title page" then put the number of cds in bg "title page" into tct
else put 0 into tct
cbusy
do "go cd id wf of stack BName"
if books = "" then getbooks
LM false
US
end if